﻿{$header}
<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">发送短信 [ <a href="__URL__">返回列表</a> ] 
  </h3>
<div id="result" class="result none"></div>
<table cellpadding=3 cellspacing=3 >
    <form class="form-horizontal well" method='post' id="form1" action="__URL__/send_message/">
<tr>
    <td colspan="4"><input type="hidden" name="mobile" value="{$mobiles}">
        <input type="hidden" name="id" value="{$valid_ids}" />
        短信: <span class="label info">短信内容60字以内为一条,超过则分为多条</span></td>
</tr>
<tr>
    <td colspan="4">短信: 
        已输入<input type="text" name="had_input" value="0" class="input-mini">,您还可以输入:<input name="remLen" type="text" value="60" class="input-mini"  readonly="readonly"> </td>
</tr>
<tr><td colspan="4">
        <textarea name="msg" rows="2" class="span12" onKeyDown="textCounter(this.form.msg,this.form.remLen,60,had_input);" onKeyUp="textCounter(this.form.msg,this.form.remLen,60,had_input);"></textarea>
</tr>

<tr>
	<td></td>
	<td class="center" width="300">
        <input type="hidden" value="{$vo.order_source_id|getModelName='Order_source'}" name="shop_name">
  	    <button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 发送</button>
	<button type="reset" onclick="javascript:history.back()" class="btn btn-primary offset1"><i class="icon-arrow-left icon-white"></i> 返回</button>
	</td>
</tr>
    <volist name="sale_to_notices" id = "topay">
    <tr>
        <td>{$topay.customer_name} </td>
          <td>{$topay.shipping_name}</td>
         <td> {$topay.mobile} </td>
         <td>{$topay.remark}</td>
        <td>下单时间：{$topay.create_time|toDate}</td>
        <td>{$topay.order_source_id|getModelName='order_source'}</td>
    </tr>
    </volist>
</form>
</table>

</div>
</div>
<include file="Public:footer" />
<SCRIPT LANGUAGE="JavaScript">    
<!--//    
function textCounter(field, countfield, maxlimit,countsize_field) {    
     countsize_field.value = field.value.length;
    // 函数，3个参数，表单名字，表单域元素名，限制字符；    
    if (field.value.length > maxlimit){    
        //如果元素区字符数大于最大字符数，按照最大字符数截断；    
        //field.value = field.value.substring(0, maxlimit);    
        field.value = field.value; 
    }
    else    
        //在记数区文本框内显示剩余的字符数；    
        countfield.value = maxlimit - field.value.length;    
}    
//-->    
</SCRIPT> 
